# -*- coding: utf-8 -*-
# @Time        :2025/4/17 8:54
# @Author      :文刀水寿
# @File        : 03_fastapi_quickstart.py
"""
 @Description :
"""
from fastapi import FastAPI
import uvicorn


app = FastAPI()


@app.get("/")
async def home():
    return {"user_id": 123}

@app.put("/index")
async def index():
    return ("....")

@app.get("/shop/")
async def shop():
    return "商品信息!!!"


if __name__ == '__main__':
    uvicorn.run("03_fastapi_quickstart:app",
                port=8080,
                reload=True)